#!/bin/sh

    cp ./hooks/.eslintrc.js  .git/hooks/.eslintrc.js
    cp ./hooks/lint.js  .git/hooks/lint.js
    cp ./hooks/output.txt  .git/hooks/output.txt
    cp ./hooks/post-merge  .git/hooks/post-merge
    cp ./hooks/pre-commit  .git/hooks/pre-commit
    
    if [[ "$?" == 0 ]]; then
    echo -e '\033[32m git钩子复制成功 \033[0m'
  else
   echo  -e '\033[31m git钩子复制失败 \033[0m'
  fi